package com.thesis.service;

import com.thesis.entity.SysFile;
import com.github.pagehelper.Page;
import org.springframework.web.multipart.MultipartFile;

import java.util.HashMap;
import java.util.List;

/**
 * Created by Anvy at 2020/4/19.
 */
public interface FileService {

    int deleteByPrimaryKey(Long id);

    int insert(SysFile record);

    int insertSelective(SysFile record);

    SysFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysFile record);

    int updateByPrimaryKey(SysFile record);

    Page<SysFile> findPageList(SysFile record);

    Page<SysFile> findPageListByVague(SysFile queryParam, String vagueParam);

    Integer deleteBatchByIds(List<Integer> idList);

    SysFile saveOrUpdateFile(SysFile sysFile, MultipartFile file);

    Integer deleteBySysFile(SysFile file);

    Integer deleteBatchByMap(HashMap map);
}
